#region Microsoft Public License
/*
 * (c) Copyright Chenjun Wu. http://utablesdk.codeplex.com
 * 
 * This source is subject to the Microsoft Public License (Ms-PL).
 * Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
 * All other rights reserved.
 */
#endregion

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows.Media.Animation;

namespace UTable.Objects
{
    public class ObjectAnimationArgs
    {
        public ObjectAnimationArgs(ObjectAnimationDstType dst, AnimationTimeline animation, HandoffBehavior handoffBehavior)
        {
            DstProperty = dst;
            Animation = animation;
            HandoffBehavior = handoffBehavior;
        }

        public ObjectAnimationArgs(ObjectAnimationDstType dst, AnimationTimeline animation)
        {
            DstProperty = dst;
            Animation = animation;
            HandoffBehavior = HandoffBehavior.Compose;
        }

        public ObjectAnimationDstType DstProperty { get; set; }

        public AnimationTimeline Animation { get; set; }

        public HandoffBehavior HandoffBehavior { get; set; }

    }

    public enum ObjectAnimationDstType
    {
        PositionX,
        PositionY,
        Orientation,
        ScaleX,
        ScaleY
    }
}
